Reconfirm Password

Dear All,

I would like to implement something like a reconfirm password tab, where the user will be asked to enter the password in a field and verify it with the actual password in the doors database.

I find no documented perm which will return me the password for a user to compare with. Logically, there should be and thats how the reconfirmPasswordTab would have been implemented.

The file reconfirmPasswordTab.inc is encrypted in the path %DOORS_HOME%\lib\dxl\standard\databaseProperties.

Can anyone let me know how to do this? Is there any undocumented perm?

Thanks & Regards
Irfan
Irfan_Jamal - Wed Jan 27 07:28:59 EST 2010

Re: Reconfirm Password
SystemAdmin - Wed Jan 27 09:21:20 EST 2010

Something similar like confirmPasswordDialog (look this in DXL Help)?

Re: Reconfirm Password
Irfan_Jamal - Wed Jan 27 22:46:13 EST 2010

SystemAdmin - Wed Jan 27 09:21:20 EST 2010
Something similar like confirmPasswordDialog (look this in DXL Help)?

Hi Pekka,

Yeah, the confirm password dialog. Possible?

Thanks & Regards
Irfan

Re: Reconfirm Password
Peter_Albert - Thu Jan 28 03:35:10 EST 2010

Irfan_Jamal - Wed Jan 27 22:46:13 EST 2010
Hi Pekka,

Yeah, the confirm password dialog. Possible?

Thanks & Regards
Irfan

Now that was new to me as well:
 

bool bPasswordOK = false, bCompleted = false 
// query user 
bPasswordOK = confirmPasswordDialog(dbExplorer, bCompleted) 
// check status 
if (bCompleted == true)
{print (bPasswordOK ? "Correct" : "Wrong") "\n"}

 


With this code snippet you can check if the user has provided the correct password or not.

Regards,

Peter

 

Re: Reconfirm Password
Irfan_Jamal - Thu Jan 28 04:12:05 EST 2010

Peter_Albert - Thu Jan 28 03:35:10 EST 2010

Now that was new to me as well:
 

bool bPasswordOK = false, bCompleted = false 
// query user 
bPasswordOK = confirmPasswordDialog(dbExplorer, bCompleted) 
// check status 
if (bCompleted == true)
{print (bPasswordOK ? "Correct" : "Wrong") "\n"}

 


With this code snippet you can check if the user has provided the correct password or not.

Regards,

Peter

 

Hello Peter,

This is a nice solution. Thanks for this. But, this doesnt solve my purpose.

I want to create a GUI like confirmPasswordDialog so that I can perform the following

  • Read the user password
  • Verify it
  • Use the password in RPE (IBM product) for publishing document

My main motive is to read the user password and verify it.

In the code snippet you had provided, I am only able to verify the password. I would also like to read it.

Thanks & Regards
Irfan

Re: Reconfirm Password
Peter_Albert - Thu Jan 28 04:52:06 EST 2010

Irfan_Jamal - Thu Jan 28 04:12:05 EST 2010
Hello Peter,

This is a nice solution. Thanks for this. But, this doesnt solve my purpose.

I want to create a GUI like confirmPasswordDialog so that I can perform the following

  • Read the user password
  • Verify it
  • Use the password in RPE (IBM product) for publishing document

My main motive is to read the user password and verify it.

In the code snippet you had provided, I am only able to verify the password. I would also like to read it.

Thanks & Regards
Irfan

Hello Irfan,

in your other thread, you already got the answer that the password is a write-only password. You cannot read it, now way. Verifying user input as described is the closest you can get. If you want to not only get the confirmation that the user knows his / her password, but in addition want to use the password, you would have to know the internal DBE variable name of the text field in the confirmPasswordDialog. Even then I would guess that the content you could get from it using the string get(DBE textDBE) perm would be "*****", hence not useful for your task. You could put it the other way round, using a second textDBE where the user types his password, then you set the confirmPasswordDialog. But that would mean that the password is clearly readable on the screen, Also not what you want. Catch 22.

Sorry for that,

Peter